// page

import Index from '@/view/Index';
//登录
import login from '@/view/login/login';
import forgetPwd from '@/view/login/forgetPwd';
import restPwd from '@/view/login/restPwd';
import sendMail from '@/view/login/sendMail';

//首页
import home from '@/view/pageIndex/home';

//组织机构管理
import organizationManager from '@/view/organization/organizationManager';
//用户管理
import userManager from '@/view/user/userManager';
//角色管理
import systemRole from '@/view/role/systemRole';
import selfDefinedRole from '@/view/role/selfDefinedRole';
//权限管理
import limitManager from '@/view/limit/limitManager';
//系统服务
    //邮件服务;
import emialService from '@/view/system/emialService';
    //日志服务
import logService from '@/view/system/logService';

    //消息服务
import messageService from '@/view/system/messageService';

//参数管理
import argumentManager from '@/view/argument/argumentManager';

export default [
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    //忘记密码
    path: '/forgetPwd',
    name: 'forgetPwd',
    component: forgetPwd
  },
  {
    //重置密码
    path: '/restPwd',
    name: 'restPwd',
    component: restPwd
  },
  {
    //发送邮件
    path: '/sendMail',
    name: 'sendMail',
    component: sendMail
  },
  {
    path: '/',
    name: 'Index',
    title: '首页',
    component: Index,
    meta: {
      requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
    },
    children: [
      {
        path: '/',
        name: 'home',
        title: '首页',
        component: home,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/organizationManager',
        name: 'organizationManager',
        title: '组织机构管理',
        component: organizationManager,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/userManager',
        name: 'userManager',
        title: '用户管理',
        component: userManager,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/systemRole',
        name: 'systemRole',
        title: '系统角色',
        component: systemRole,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/selfDefinedRole',
        name: 'selfDefinedRole',
        title: '自定义角色',
        component: selfDefinedRole,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/limitManager',
        name: 'roleManager',
        title: '权限管理',
        component: limitManager,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/emialService',
        name: 'emialService',
        title: '邮件管理',
        component: emialService,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/logService',
        name: 'logService',
        title: '日志管理',
        component: logService,
        meta: {
          requireAuth: true, 
        },
      },
      {
        path: '/messageService',
        name: 'messageService',
        title: '消息管理',
        component: messageService,
        meta: {
          requireAuth: true,
        },
      },
      {
        path: '/argumentManager',
        name: 'argumentManager',
        title: '参数管理',
        component: argumentManager,
        meta: {
          requireAuth: true,
        },
      },
  ]
  },
]
